package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelComment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelCommentService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(CommentQueryObject qo);

    /**
     * 新增和编辑
     * @param travelComment
     */
    void saveOrUpdate(TravelComment travelComment);


    List<TravelComment> listAll();

    TravelComment get(Long id);

    void saveOrUpdate(TravelComment travelComment, String[] tags);

    Integer queryCountByTravelId(Long travelCommentId);
}

